php current datettime us time zone

71

php current datettime us time zone -

<?php
$date = new DateTime("now", new DateTimeZone('America/New_York') );
echo $date->format('Y-m-d H:i:s');

Comments

Submit
0 Comments